#!/usr/bin/python
#-*- coding=utf-8-*-


from django import forms
from common.models import Book


class BookForm(forms.ModelForm):

    class Meta:

        model = Book

        fields = ["name", "isin", "author", "pages", "price", "publish_date", ]
        widgets = {
            "publish_date": forms.DateInput(format="%Y-%M-%d"),
        }
